package com.firmye.codereposboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController extends BaseController {

    @RequestMapping("/login")
    public String toLogin(){
        return "login";
    }

    @RequestMapping("/index")
    public String toIndex(Model model){
        model.addAttribute("user",getUser());
        return "index";
    }

    @RequestMapping("/modal")
    public String toModal(Model model){
        model.addAttribute("user",getUser());
        return "modal_window";
    }
}
